package com.example.demo.mapper;

import com.example.demo.entity.OrderItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chenqiuran
 * @decription 订单项mapper
 * @date 2021/8/20
 */
@Mapper
public interface OrderItemMapper {
    public List<OrderItem> findAllOrderItemByOrderId(long OrderId);
    public List<OrderItem> findAllOrderItemByOrderIdWithRange(long orderId,int index,int limit);
    public Integer addAllOrderItem(@Param("orderItemList") List<OrderItem> orderItemList);
    public Integer deleteAllOrderItem(long orderId);
}
